<%@ page language="java"
	import="com.byxy.model.BasicInfo, com.byxy.service.BasicInfoServiceImpl, com.byxy.util.DateUtil"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>查看信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="Styles/admin-all.css" />
<script type="text/javascript" src="Scripts/jquery-1.7.2.js"></script>
<script type="text/javascript"
	src="Scripts/jquery-ui-1.8.22.custom.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="Styles/ui-lightness/jquery-ui-1.8.22.custom.css" />

</head>

<body>
	<%
		int id = Integer.parseInt(request.getParameter("id"));
		BasicInfoServiceImpl basicSer = new BasicInfoServiceImpl();
		BasicInfo basic = basicSer.findById(id);
	%>
	<h1>时间格式：yyyy-MM-dd</h1>
	<h2>例如：2017-01-01</h2>
	<p>根据编号修改对应信息</p>

	<form action="../BasicInfoUpdaetServlet" method="post"
		onSubmit="return chkads()" name="lf_addstu">
		<table class="table table-striped table-bordered table-condensed list">
			<tr>
				<td>编号：</td>
				<td>姓名：</td>
				<td>性别：</td>
				<td>民族：</td>
				<td>籍贯：</td>
			</tr>
			<tr class="demo">
				<td><div><%=basic.getId()%></div></td>
				<td><div><%=basic.getName()%></div></td>
				<td><div><%=basic.getSex()%></div></td>
				<td><div><%=basic.getFamilyName()%></div></td>
				<td><div><%=basic.getPlaceOfBirth()%></div></td>

			</tr>
			<tr>
				<td>出生年月：</td>
				<td>学历：</td>
				<td>党内职务：</td>
				<td>参加工作时间：</td>
				<td>入党时间：</td>
			</tr>
			<tr class="demo">

				<td><div><%=DateUtil.utilDateTosqlDate(basic.getBirthday())%></div></td>
				<td><div><%=basic.getEducation()%></div></td>
				<td><div><%=basic.getPost()%></div></td>
				<td><div><%=DateUtil.utilDateTosqlDate(basic.getWorkHours())%></div></td>
				<td><div><%=DateUtil.utilDateTosqlDate(basic.getPartyHours())%></div></td>

			</tr>
			<tr>
				<td>转正时间：</td>
				<td>正式/预备：</td>
				<td>转入时间：</td>
				<td>转入前党支部：</td>
				<td>户籍所在地：</td>
			</tr>
			<tr class="demo">
				<td><div><%=DateUtil.utilDateTosqlDate(basic.getPositiveHours())%></div></td>
				<td><div>
						<%
							if (basic.isStatus() == true) {
								out.print("正式");
							} else {
								out.print("预备");
							}
						%>
					</div></td>
				<td><div><%=DateUtil.utilDateTosqlDate(basic.getTransitHours())%></div></td>
				<td><div><%=basic.getTransferredToTheFormerPartyBranch()%></div></td>
				<td><div><%=basic.getDomicileLocation()%></div></td>

			</tr>
			<tr>
				<td>身份证号：</td>
				<td>联系电话：</td>
				<td>QQ号：</td>
				<td>微信号：</td>
				<td>转出时间：</td>
			</tr>
			<tr class="demo">
				<td><div><%=basic.getIdNumber()%></div></td>
				<td><div><%=basic.getContactNumber()%></div></td>
				<td><div><%=basic.getQqNumber()%></div></td>
				<td><div><%=basic.getWechatNumber()%></div></td>
				<td><div><%=DateUtil.utilDateTosqlDate(basic.getRollOutHours())%></div></td>


			</tr>
			<tr>
				<td>转出党支部名称：</td>
				<td>入党介绍人：</td>
				<td>备注：</td>
				<td>部门编号：</td>
				<td></td>
			</tr>
			<tr class="demo">

				<td><div><%=basic.getNameOfPartyBranch()%></div></td>
				<td><div><%=basic.getSponsor()%></div></td>
				<td><div><%=basic.getText()%></div></td>
				<td><div><%=basic.getDepartmentId()%></div></td>
				<td></td>
			</tr>

		</table>
		<td><a href="#" type=”button” name=”submit”
			onclick="javascript:history.back(-1);">返回上一页</a></td>
	</form>
</body>
</html>
